﻿using System.Windows;
using System.Windows.Threading;

namespace WpfTwitterClient
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public App()
        {
            var bootStrapper = new Bootstrapper();
            bootStrapper.Run();
        }

        void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
        {
            ErrorWindow errorWindow = new ErrorWindow();
            errorWindow.Show();
            // Process unhandled exception

            // Prevent default unhandled exception processing
            e.Handled = true;
        }

    }
}
